<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    *{
        padding: 0;
        margin: 0;
    }
        .blue{
            width: 100px;
            height: 100px;
            background: blue;
            position: relative;
            top: 45px;
            left: 45px;
        }
        .red{
            width: 100px;
            height: 100px;
            background: red;   
        }
    </style>
</head>
<body>
    <div class="blue"></div>
    <div class="red"></div>
</body>
</html>
